OBJECTS = fixed.o vector3.o matrix.o gps.o gps_test.o
CFLAGS = -std=c99 -I../../math -I../../gps
CC = gcc
VPATH = ../../math:../../gps

all: gps_test

gps_test: $(OBJECTS)
	$(CC) $(OBJECTS) -o $@

fixed.o: fixed.c fixed.h
vector3.o: vector3.c vector3.h matrix.h fixed.h
matrix.o: matrix.c matrix.h fixed.h
gps.o: gps.c gps.h vector3.h matrix.h fixed.h
gps_test.o: gps_test.c gps.h

clean:
	rm -rf gps_test gps_test.exe $(OBJECTS)
